﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Asp.netMvc.Models.tblEmp>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="组织ID">组织ID:</label>
                <%= Html.TextBox("组织ID", Model.组织ID) %>
                <%= Html.ValidationMessage("组织ID", "*") %>
            </p>
            <p>
                <label for="线路ID">线路ID:</label>
                <%= Html.TextBox("线路ID", Model.线路ID) %>
                <%= Html.ValidationMessage("线路ID", "*") %>
            </p>
            <p>
                <label for="工号">工号:</label>
<%--                //<%= Html.TextBox("工号", Model.工号, new DictionaryEntry() { Key=""  })%>
--%>                
                <input id="工号"  name="工号" type="text" readonly="readonly"  maxlength="10" value="<%= Model.工号%>" />
                
                <%= Html.ValidationMessage("工号", "*") %>
            </p>
            <p>
                <label for="姓名">姓名:</label>
                <%= Html.TextBox("姓名", Model.姓名) %>
                <%= Html.ValidationMessage("姓名", "*") %>
            </p>
            <p>
                <label for="性别">性别:</label>
                <%= Html.TextBox("性别", Model.性别) %>
                <%= Html.ValidationMessage("性别", "*") %>
            </p>
            <p>
                <label for="角色">角色:</label>
                <%= Html.TextBox("角色", Model.角色) %>
                <%= Html.ValidationMessage("角色", "*") %>
            </p>
            <p>
                <label for="密码">密码:</label>
                <%= Html.TextBox("密码", Model.密码) %>
                <%= Html.ValidationMessage("密码", "*") %>
            </p>
            <p>
                <label for="密码MD5">密码MD5:</label>
                <%= Html.TextBox("密码MD5", Model.密码MD5) %>
                <%= Html.ValidationMessage("密码MD5", "*") %>
            </p>
            <p>
                <label for="IC卡号">IC卡号:</label>
                <%= Html.TextBox("IC卡号", Model.IC卡号) %>
                <%= Html.ValidationMessage("IC卡号", "*") %>
            </p>
            <p>
                <label for="服务证号">服务证号:</label>
                <%= Html.TextBox("服务证号", Model.服务证号) %>
                <%= Html.ValidationMessage("服务证号", "*") %>
            </p>
            <p>
                <label for="职务">职务:</label>
                <%= Html.TextBox("职务", Model.职务) %>
                <%= Html.ValidationMessage("职务", "*") %>
            </p>
            <p>
                <label for="岗位">岗位:</label>
                <%= Html.TextBox("岗位", Model.岗位) %>
                <%= Html.ValidationMessage("岗位", "*") %>
            </p>
            <p>
                <label for="主管">主管:複選框</label>
                <%= Html.CheckBox("主管", Model.主管) %>
            </p>
            <p>
                <label for="电话">电话:</label>
                <%= Html.TextBox("电话", Model.电话) %>
                <%= Html.ValidationMessage("电话", "*") %>
            </p>
            <p>
                <label for="移动电话">移动电话:</label>
                <%= Html.TextBox("移动电话", Model.移动电话) %>
                <%= Html.ValidationMessage("移动电话", "*") %>
            </p>
            <p>
                <label for="登陆工作站">登陆工作站:</label>
                <%= Html.TextBox("登陆工作站", Model.登陆工作站) %>
                <%= Html.ValidationMessage("登陆工作站", "*") %>
            </p>
            <p>
                <label for="备注">备注:</label>
<%--                <%= Html.TextBox("备注", Model.备注) %>
                <%= Html.ValidationMessage("备注", "*") %>--%>
                
              <input id="备注"  name="备注" type="text"  maxlength="50" value="<%= Model.备注%>" />

            </p>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div id="ddd">
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

